package com.example.boot.rtshop.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.boot.rtshop.service.RtShopService;
import com.example.boot.util.ResultData;
import com.example.boot.util.ResultUtil;

@RestController
public class RtShopController {
	@Autowired
	private RtShopService rtShopService;

	@RequestMapping(value = "/findByAllShop")
	public ResultData<Object> findByAllShop(String origin) throws Exception {
		return ResultUtil.success(rtShopService.findByAllShop(origin));
	}
}
